package com.joker.entity;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 聊天记录表
 * </p>
 *
 * @author joker
 * @since 2021-06-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Chat implements Serializable {

    private static final long serialVersionUID=1L;

      /**
     * 聊天记录id
     */
      @TableId(value = "chat_id", type = IdType.AUTO)
      private Integer chatId;

      /**
     * 发送者id
     */
      private String chatSend;

      /**
     * 接收者id
     */
      private String chatReceive;

      /**
     * 交流内容
     */
      private String chatContent;

    /**
     * 交流时间
     */
      private LocalDateTime chatDate;

    /**
     * 是否已读了，1表示已读
     */
      private Integer readFlag;


}
